//
//  AIGirlHomeModel.swift
//  AIGirl
//
//  Created by Rae on 2024/1/8.
//

import Foundation

struct AIGirlHomeModel: HandyJSON {
    var activityRecharge: AIGirlHomeItemModel = AIGirlHomeItemModel()
    var rechargeList: [AIGirlHomeItemModel] = []
}

struct AIGirlHomeItemModel: HandyJSON {
    var addCoin: String = "" //附加币数量用于展示
    var addWords: String = "" //文案
    var backgroundImg: String = ""//卡片背景图地址
    var code: String = "" //苹果的支付码code，PayPal不用
    var codeType: String = "" //0 paypal 1ios。2 google。
    var coin: String = "" //充值币数量
    var festivalActivity: Bool = false //是否为节假日活动 true:是
    var foregroundImg: String = ""//卡片前景图地址
    var id: String = ""
    var lastAddWords: String = "" //原始文案
    var originalCoin: String = "" //实际币数量用于展示
    var originalPrice: String = "" //划线价
    var price: String = ""//价格 美元
    var sceneExpirationDuration: Int = 0 //    剩余过期时长(秒)，过期时长为0时服务器不返回结果。
    var sortTop: String = "" //排序号从小到大
    var index: Int = 0
}

struct AIGirlSubscribeModel: HandyJSON {
    var lists: [AIGirlSubscribeItemModel] = [AIGirlSubscribeItemModel]()
}

struct AIGirlSubscribeItemModel: HandyJSON {
    var addCoin: String = "" //附加币数量用于展示
    var addWords: String = "" //文案
    var code: String = "" //苹果的支付码code，PayPal不用
    var dayAvgPrice: String = ""
    var coin: String = "" //充值币数量
    var id: Int = 0
    var level: Int = 0 // vip 等级约定 1黄金 2白银 3青铜
    var name: String = ""
    var originPrice: String = "" //原价，划线价
    var period: Int = 0 //订阅周期 0 周 1月 2 两个月 3三个月 4 六个月 5 一年
    var periodPrice: String = "" //每个周期的价格，包括$/mo之类的
    var price: String = "" //总价 最终的，不含$/mo
    var sort: Int = 0//从小到大排序
    var tips: String = "" //小提示
    var isSel: Bool = false
}

struct AIGirlConfigModel: HandyJSON {
    var configs: [String] = [String]()
}

struct AIGirlPurchaseModel: HandyJSON {
    var id: String = ""
    var croResult: AIGirlPurchaseResultModel?
}

struct AIGirlPurchaseResultModel: HandyJSON {
    var order_id: String = ""
    var price_amount: String = ""
    var price_currency: String = ""
}

struct AIGirlVIPModel: HandyJSON {
    var createTime: Int = 0 //开通时间
    var expirationTime: Int = 0 //VIP的过期时间
//    var price_currency: String = ""
}

struct AIGirlBannerModel: HandyJSON {
    var bannerList: [AIGirlBannerItemModel] = [AIGirlBannerItemModel]()
}

struct AIGirlBannerItemModel: HandyJSON {
    var imageUrl: String = ""
    var targetUrl: String = ""
    var title: String = ""
    var type: Int = 0 //0内部webview 1外部网页 2内部跳转
    var value: String = ""
}

struct AIGirlAwardModel: HandyJSON {
    var value: Int = 0
}
